package com.candy.niuniu.logdubbo.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author suYanLong
 * @version 1.0
 * @date 2023/10/24 17:32
 * @Description 描述
 */
@Data
@Table("log_link")
@Accessors(chain = true)
public class LogLink implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    private String serviceName;

    private String method;

    private Long traceId;

    private String requestUrl;

    private String requestParam;

    private String requestBody;

    private String responseData;

    private LocalDateTime createTime;

    @Column(ignore = true)
    private Integer num;

    @Override
    public String toString() {
        return "LogLink{" +
                "id=" + id +
                ", serviceName=" + serviceName +
                ", method=" + method +
                ", requestData=" + requestParam +
                ", requestBody=" + requestBody +
                ", responseData=" + responseData +
                ", createTime=" + createTime +
                "}";
    }

}
